package com.bzkj.basicinfo.service.basic;

import com.bzkj.basicinfo.domain.basic.BasicStoArea;
import com.bzkj.basicinfo.domain.basic.BasicStoStock;
import com.bzkj.common.core.domain.AjaxResult;

import java.util.List;

/**
 * @author wl
 * @description 针对表【basic_sto_stock(WMS仓库信息表)】的数据库操作Service
 * @createDate 2024-12-13 10:42:22
 */
public interface BasicStoStockService
{
    /**
     * 获取库区列表信息
     *
     * @Author wangzhichao
     * @Date 2024/12/13 12:17:59
     * @Param entity
     */
    List<BasicStoArea> findBasicStoStockData(BasicStoArea entity);

    /**
     * 查询所有库区数据（下拉使用）
     * @param entity
     * @return
     */
    List<BasicStoArea> findAllBasicStoStockData(BasicStoArea entity);

    AjaxResult updateBasicStoStockEnableStatus(String status, String pkStoDoc);

    /**
     * 修改wms状态
     * @param status
     * @param stoId
     * @return
     */
    AjaxResult updateBasicStoStockWmsEnableStatus(String status, String stoId);

    /**
     * 根据用户ID获取仓库选择框列表
     *
     * @param userId 用户ID
     * @return 选中岗位ID列表
     */
    public List<String> selectWarehouseListByUserId(Long userId);

    /**
     * 根据wms仓库stoid获取仓库数据
     *
     * @param stoId
     * @return
     */
    BasicStoArea queryOneByStoId(String stoId);

    List<BasicStoStock> selectAllBasicStoStock(String stoCode,String stoName);

    AjaxResult queryAllStoStock(String mode,String stoId,String stoCode,String stoName,String stoAreaId,String flag);
}
